Skip to content

feat(workspace-probe): CLI (readout/probe/grade-mutation) + runnable demo (0.1.1)#136

Merged
ruvnet merged 1 commit into
mainfrom
feat/workspace-probe-cli
Jul 7, 2026
Merged

feat(workspace-probe): CLI (readout/probe/grade-mutation) + runnable demo (0.1.1)#136
ruvnet merged 1 commit into
mainfrom
feat/workspace-probe-cli

Conversation

@ruvnet

@ruvnet ruvnet commented Jul 7, 2026

Copy link
Copy Markdown
Owner

What / why

The audit-tooling polish for the interpretability stack (user-directed): a shell surface + a runnable demo so the shipped libraries are usable from the command line and easy to try.

  • workspace-probe bin β€” JSON-in / JSON-out CLI over @metaharness/workspace-lens + this package (composes with jq/CI):
    workspace-probe diag           <lens.json>
    workspace-probe readout        <lens.json> <activations.json> [--top-k N]
    workspace-probe probe          <receipts.json> [--drift-threshold F]
    workspace-probe grade-mutation <baseline-receipts.json> <mutant-receipts.json>
    
    Exit codes 0 ok / 2 usage / 1 runtime. runCli(argv) is exported (pure w.r.t. process.exit) so it's unit-testable.
  • examples/demo.mjs β€” a $0, no-model end-to-end walk-through: synthetic lens β†’ readout β†’ receipts β†’ probe score β†’ mutation veto. Deterministic, no deps (node packages/workspace-probe/examples/demo.mjs).

Tests / verify

  • 6 CLI tests (each subcommand + usage/help/unknown-command + runtime-error) via a stdout spy; full workspace-probe suite 15/15; tsc clean; healthcheck version green (0.1.1, independently-versioned).
  • Live-verified: the real bin diag/readout print correct JSON; the demo vetoes a workspace-degrading mutation (critical rate 0β†’0.5, clean fraction 1β†’0.5).

Publishes as @metaharness/workspace-probe@0.1.1 on the next tag.

πŸ€– Generated with claude-flow

…demo (0.1.1)

Ships the audit-tooling layer for the interpretability stack (user-directed polish):

- `workspace-probe` bin β€” a JSON-in/JSON-out CLI over @metaharness/workspace-lens + this package, for
  audit workflows that don't want to write TS (composes with jq/CI):
    diag <lens.json>                                   β€” fitted-lens metadata
    readout <lens.json> <activations.json> [--top-k N] β€” workspace tokens per activation
    probe <receipts.json> [--drift-threshold F]        β€” workspaceProbeScore over a receipt set
    grade-mutation <baseline.json> <mutant.json>       β€” keep/veto verdict
  Exit codes 0 ok / 2 usage / 1 runtime; `runCli(argv)` is exported (pure w.r.t. process.exit) for tests.
- examples/demo.mjs β€” a $0, no-model end-to-end walk-through (synthetic lens β†’ readout β†’ receipts β†’
  probe score β†’ mutation veto). Runs deterministically, no deps.

6 CLI tests (diag/readout/probe/grade-mutation + usage/help/unknown + runtime-error paths) via a stdout
spy; full workspace-probe suite 15/15; tsc clean; healthcheck version green (0.1.1, independently-versioned).
README gains CLI + demo sections. bin added to `files`.

Co-Authored-By: claude-flow <ruv@ruv.net>
@ruvnet ruvnet merged commit 139d79b into main Jul 7, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant